package com.xiaolun.prototype;

import java.util.Date;

public class Bibi {
    public static void main(String[] args) throws CloneNotSupportedException {
        //原型对象
        Date date = new Date();
        Video v1 = new Video("xiaolun", date);
        Video v2 = (Video) v1.clone();
        System.out.println("v1--->"+v1);
        System.out.println("v2--->"+v2);

        System.out.println("------------------------------------");
        date.setTime(222222);
        System.out.println("v1--->"+v1);
        System.out.println("v2--->"+v2);
    }
}
